<!DOCTYPE html>
<html>
    <head>
        <title>Flower Shop - Trang Chủ</title>
        <meta charset="UTF-8"> 
        <link rel="stylesheet" type="text/css" href="<?php echo asset_url() . 'css/style.css'; ?>" />
        <link rel="stylesheet" type="text/css" href="<?php echo asset_url() . 'css/stylenav.css'; ?>" />
        <script type="text/javascript" src="<?php echo asset_url() . 'js/jquery.js'; ?>"></script>
        <link rel="stylesheet" type="text/css" href="<?php echo asset_url() . 'css/snoweffect.css'; ?>" />
    </head>
    <body>        
        <div id="wrap">
            <?php
            if ($this->session->userdata("MaQuyen") == 1) {
                include '/layout/header_admin.php';
            } else {
                include '/layout/header.php';
            }
            ?>

            <div class="center_content">
                <div class="left_content">
                    <div class="title"><span class="title_icon"><?php echo img(asset_url() . 'imgs/bullet1.gif', TRUE); ?></span>Sản phẩm mới</div>
                    <?php
                    if (isset($hoa)) {
                        $count = 0;
                        foreach ($hoa as $val) {
                            $val = (object) $val;
                            $MaHoa = $val->MaHoa;
                            $TenHoa = $val->TenHoa;
                            $MaLoaiHoa = $val->MaLoaiHoa;
                            $Mota = $val->MoTa;
                            $HinhAnh = $val->HinhAnh;
                            $SoLuong = $val->SoLuong;
                            $DonGia = $val->DonGia;
                            ?>
                            <div class="feat_prod_box">
                                <div class="prod_img"><img src="<?php echo asset_url() . "$HinhAnh"; ?>" alt="" class="X" width="150px" border="0" /></div>
                                <div class="prod_det_box">                            
                                    <div class="box_center">
                                        <div class="prod_title"><?php echo $TenHoa; ?></div>
                                        <p class="details"><?php echo $Mota; ?></p>

                                        <div class="clear"></div>
                                    </div>
                                    <div class="box_bottom"></div>
                                </div>
                                <div class="clear"></div>
                            </div>
                            <?php
                            $count = $count + 1;
                            if ($count == 3) {
                                break;
                            }
                        }
                    }
                    ?> 

                    <div class="clear"></div>
                </div>
                <!--end of left content-->
                <div class="right_content">
                    <div class="languages_box"> <span class="red">Ngôn Ngữ:</span> <a href="http://all-free-download.com/free-website-templates/" class="selected"><?php echo img(asset_url() . 'imgs/vn.bmp', TRUE); ?></a> <a href="http://all-free-download.com/free-website-templates/"><?php echo img(asset_url() . 'imgs/gb.gif', TRUE); ?></a></div>
                    <div class="currency"> <span class="red">Đơn Vị: </span> <a href="http://all-free-download.com/free-website-templates/" class="selected">VND</a><a href="http://all-free-download.com/free-website-templates/">USD</a> </div>
                    <div class="cart">
                        <div class="title"><span class="title_icon"><?php echo img(asset_url() . 'imgs/cart.gif', TRUE); ?></span><a style="text-decoration:none" href="http://localhost:8080/flowershop-424-641/index.php/shopping">Giỏ Hàng</a></div>
                        <div class="home_cart_content"> <?php echo ($this->cart->total_items()); ?> x items | <span class="red">TOTAL: <?php echo($this->cart->total()); ?> VND</span> </div>
                    </div>  
                </div>
                <!--end of right content-->
                <div class="clear"></div>
            </div>
            <!--end of center content-->
            <div class="footer">
                <div class="left_footer"><?php echo img(asset_url() . 'imgs/footer_logo.gif', TRUE); ?><br />
                    <a href="http://csscreme.com"><?php echo img(asset_url() . 'imgs/csscreme.gif', TRUE); ?></a></div>
                <div class="right_footer"> <a href="http://all-free-download.com/free-website-templates/">home</a> <a href="http://all-free-download.com/free-website-templates/">about us</a> <a href="http://all-free-download.com/free-website-templates/">services</a> <a href="http://all-free-download.com/free-website-templates/">privacy policy</a> <a href="http://all-free-download.com/free-website-templates/">contact us</a> </div>
            </div>
        </div>

        <div align=center></div>
    </body>
</html>
